package com.zui.entity.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zui.entity.BaseAutoIdEntity;





@Entity
@Table(name="uom_conversion")
public class UomConversion extends BaseAutoIdEntity {
	private static final long serialVersionUID = 1L;

	private Uom uom;
	private Uom uomTo;
	
	private Double conversionFactor;
	private String customMethodId;
	private Double decimalScale;
	private String roundingMode;
	
	@ManyToOne() @JoinColumn(name="uomId")
	public Uom getUom() {	return uom;	}
	@ManyToOne() @JoinColumn(name="uomToId")
	public Uom getUomTo() {	return uomTo;	}
	public Double getConversionFactor() {return conversionFactor;}
	@Column(length=20)
	public String getCustomMethodId() {return customMethodId;}
	public Double getDecimalScale() {return decimalScale;}
	@Column(length=20)
	public String getRoundingMode() {return roundingMode;}
	
	
	public void setConversionFactor(Double conversionFactor) {
		this.conversionFactor = conversionFactor;
	}
	public void setCustomMethodId(String customMethodId) {
		this.customMethodId = customMethodId;
	}
	public void setDecimalScale(Double decimalScale) {
		this.decimalScale = decimalScale;
	}
	public void setRoundingMode(String roundingMode) {
		this.roundingMode = roundingMode;
	}
	public void setUom(Uom uom) {
		this.uom = uom;
	}
	public void setUomTo(Uom uomTo) {
		this.uomTo = uomTo;
	}
	
}
